package com.xywl.escort.view.pwd;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.CaptchaBean;
import com.xywl.escort.bean.ForgetPwdReq;
import com.xywl.escort.bean.GetSmsCodeReq;

public interface RecoverPwdContract {

    interface Presenter extends BasePresenter {
        void takeView(RecoverPwdContract.View view);

        void getCode(GetSmsCodeReq req);

        void recoverLoginPwd(ForgetPwdReq req);

        void getCaptcha();
    }

    interface View extends BaseView<Presenter> {
        void startCountDown();

        void getCodeFailure(String msg);

        void recoverLoginSuccess(BaseResp resp);

        void recoverLoginFailure(String msg);

        void getCaptchaSuccess(CaptchaBean bean);

        void getCaptchaFailure();
    }
}